<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<link href="{TPL}css/NewTopFoot.css" rel="Stylesheet" type="text/css">
<link type="text/css" rel="stylesheet" href="{TPL}css/AddItemPanel.css">
<script type="text/javascript" src="{TPL}js/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="{TPL}js/jQuery.Extend.js"></script>
<script src="{TPL}js/jQuery.Drag.min.js" type="text/javascript"></script>
<script type="text/javascript" src="{TPL}js/jquery.cookies.2.1.0.min.js"></script>
<script src="{TPL}js/Gobal.js" type="text/javascript"></script>

<link type="text/css" rel="stylesheet" href="{TPL}css/Product_ori.css">
<script type="text/javascript" src="{TPL}js/jquery.json-1.3.min.js"></script>

<link href="{TPL}newedit/css/public.css" rel="stylesheet" type="text/css" />
<link href="{TPL}newedit/css/product.css" rel="stylesheet" type="text/css" />
 
    <script type="text/javascript">
function sp()

{
$("#yin").show(); 
}

function xiu()

{
var newvalue = document.getElementById('jiage').value;
var fwf = document.getElementById('cfg_site_fuwufei').value;

if (newvalue > 0)
{

$("#yin").hide(); 
var formla = newvalue + "*" + fwf; 
newvalue2 = eval(formla).toFixed(2);

document.getElementById('grandtotal').innerHTML =newvalue;
document.getElementById('grandtotal2').innerHTML =newvalue2;
$("#gdprice").val(newvalue2);

}
else
{
alert ("请填写正确的价格");
}
}


function resp()
{
$("#yin").hide(); 
}
	
    </script>
	
    <script type="text/javascript">
  
		function addToCart(){
		var productName="{$value['goodsname']}";
		var productUrl="{$value['goodsurl']}";
		var Picture="{$value['goodsimg']}";
		var ShopName="{$value['goodsseller']}";
		var ShopHref="{$value['sellerurl']}";
		var price=$("#gdprice").val();
		var productNum=$("#number").val();
		var productSendPrice="{$value['express_fee']}";
		var isAuction="0";
		var chicun=$("#j_size").val();
		var yanse=$("#j_color").val();
		var type="1";
		var expressno="";
		var VIPPrice1="-1",VIPPrice2="-1",VIPPrice3="-1";
		var productRemark="颜色:"+yanse+" ,尺寸:"+chicun;
		var quehuo = $("input[name=quehuo]:checked").val();
		var quehuotxt = $("#quehuotxt").val();
		 $.ajax({
                    type: "POST",
                    url: "/ajax/fast_ajax.php?action=add",
                    dataType: "json",
                    //contentType: "application/json;utf-8",
        
					data:"adddata="+encodeURIComponent("{\"name\":'" + productName + "',\"href\":'" + productUrl + "',\"picture\":'" + Picture + "',\"thumbnail\":'" + Picture + "',\"chicun\":'" + chicun + "',\"yanse\":'" + yanse + "',\"shopName\":'" + ShopName + "',\"shopHref\":'" + ShopHref + "',\"price\":'" + price + "',\"vipPrice1\":'" + VIPPrice1 + "',\"vipPrice2\":'" + VIPPrice2 + "',\"vipPrice3\":'" + VIPPrice3 + "',\"buyNum\":'" + productNum + "',\"freight\":'" + productSendPrice + "',\"isAuction\":'" + isAuction + "',\"remark\":'" + productRemark  + "',\"type\":'" + type  + "',\"expressno\":'" + expressno + "',\"quehuo\":'" + quehuo + "',\"quehuotxt\":'" + quehuotxt + "'}"),

                   timeout: 10000,
				   error: function (){ alert(1) },
				   success: function (data){
					location.href="/shoppingcart.php";
				   }
                });
		
		
		}
		
	function j_change_num(t){
          var num=document.getElementById('number');
          if(t=='p'){
			  if(num.value>={$value['num']}){alert('{lang j_get_1}{$value['num']}！');return false;}
              num.value++;
        
          }else if(t=='d'){
            if(num.value<=1){
              num.value=1;
              alert('{lang j_get_1}1！');
            }else{
              num.value--;
            }
          }else{
            if(num.value<=1){
              num.value=1;
              alert('{lang j_get_1}1！');
            }
          }
         
	}	
	
	function cccc(v,x){
		if(v>=x){return x;}else{return v;}
	}
		
    </script>


<title>
	{$value['goodsname']} - {$cfg_site_name}
</title></head><body>


<form id="" action="###" method="post" name="">

{template 'header'}
{if $value['goodsname']==""}
 <div class="list" style="margin-top:10px;height:100px;padding-top:30px;text-align:center;">
 
  <h1 style="font-size:20px;color:red;">{lang j_get_3}！</h1>
 
 </div>
{/if}  
    <div class="list" style="margin-top:10px;{if $value['goodsname']==""}display:none;{/if}" >
 
        <div class="you" style="width:956px;">
            <h1>{$value['goodsname']}</h1>
            <div class="product" style="position:relative;">
                <div class="img">
                    <a href="#" style="cursor:default;">
                        <img alt="{$value['goodsname']}" src="{$value['goodsimg']}"/></a>
                </div>
				
				<div style="width:210px;height:200px;position:absolute;right:-230px;top:10px;border:1px solid #ccc;background:#f1f1f1;text-align:center;overflow:hidden;">
				<br/>
				<h2 style="text-align:center;"><a target="_blank" href="{$value['sellerurl']}" style="color:#1F8AEA;font-size:16px;text-decoration: none;" title="{$value['goodsseller']}"><b>{$value['goodsseller']}</b></a></h2>	
<br/>				
				<p style="line-height:180%;"><b>{lang j_get_4}</b></p>
				<p style="line-height:180%;">{lang j_get_5}：{$value['seller_shop_score1']}</p>
				<p style="line-height:180%;">{lang j_get_6}：{$value['seller_shop_score2']}</p>
				<p style="line-height:180%;">{lang j_get_7}：{$value['seller_shop_score3']}</p>
				
				<br/>
				<p><a target="_blank" href="{$value['goodsurl']}" style="color:#1F8AEA;font-size:13px;"><img src="/images/li_taobao.gif"/>&nbsp;{lang j_get_8}</a></p>
				</div>
				
                <div class="parameter" >
				
				
                    <div class="pl" STYLE="HEIGHT:30PX;">
                    
                        <dl>
                            <dt>
							￥<span onclick='sp()' id='grandtotal'>{$value['goodsprice']}</span>&nbsp;
							<input type='hidden' value="{$value['goodsprice']}" id='gdprice' />
							<span id='yin' style="display: none;"><input size='3' style='width:60px;' type='text' value='' name='jiage' id='jiage' /><input type='button' onclick='xiu()' value='修改' /><input type='button' onclick='resp()' value='取消' /></span>
							<span id="xjp_b" style="font-size:13px;color:#537cc4;display:none" ></span>
							</dt>
                            <dt>
							<span id="fuwufei" style="font-size:13px;color:#537cc4;"></span>&nbsp;
							=￥<span id="grandtotal2" style="font-size:24px;"></span>
							<input type='hidden' value="{$cfg_site_fuwufei}" id='cfg_site_fuwufei' />
							<script>var hv3="{$cfg_site_fuwufei}";$("#fuwufei").html("X 服务费 "+((hv3-1)*100).toFixed(2)+"%" );</script> 
							<script>var hv2="{$cfg_site_fuwufei}";$("#grandtotal2").html(""+({$value['goodsprice']}*hv2).toFixed(2)+"" );</script> 
							</dt>
                            <script>var hv="{$cfg_site_huilv}";$("#xjp_b").html("( RM"+({$value['goodsprice']}/hv).toFixed(2)+" )" );</script> 
                        </dl>
                    </div>
                    <ul>
					<li><span style="font-size:12px;color:blue;">如价格不一致,请<a target="_blank" href="{$kefu}">联系客服</a>或点击价格进行修改</span></li>
                        <li><b>{lang j_get_9}</b>：{$value['location']} <b>{lang j_get_10}</b>：￥{$value['express_fee']}  </li>
                        <li><b>{lang j_get_11}</b>：{$value['stuff_status']} <b>{lang j_get_12}</b>：{$value['list_time']}</li>				
						 <li><b>{lang j_get_13}</b>：{$value['color']}</li>
						 <li><b>{lang j_get_14}</b>：{$value['size']}</li>
						 <li style="margin-top:5px;"><span style="display:inline-block;float:left;color:#666;font-weight:bold;">{lang j_get_15}：</span>
						 <div class="jj fl pr">
							<input type="text" onblur="this.value=cccc(this.value,{$value['num']})" onpaste="return false" name="number" id="number" value="1" size="4" onkeyup="this.value=this.value.replace(/\D/g,'')"  onafterpaste="this.value=this.value.replace(/\D/g,'')" style="text-align:center; ">
							<a href="javascript:j_change_num('p');" class="jia">+</a>
							<a href="javascript:j_change_num('d');" class="jian">-</a>
						  </div>
						 &nbsp;&nbsp;( {lang j_get_16}{$value['num']} )</li>
					
                    </ul>
					<div class="det_bo">
						<div class="quehuo">卖家缺货选择</div>
						<span id="quehuo">
						<div class="det_th quxiao">
							<div><input value="1" id="quehuo_0" type="radio" name="quehuo" />取消订单</div>
						</div>
						
						<div class="det_th quxiao">
							<div><input value="2" id="quehuo_1" type="radio" name="quehuo" />我想换其它尺寸/颜色/样式 <input id="quehuotxt" name="quehuotxt" type="text" /></div>
						</div>
						</span>						
					</div>
					<div style="clear:both"></div>
                    <div class="shopping">                       
                        <a style="cursor: pointer;" onClick="addToCart()" id="submitBtn" style="background:None;">
						<img src="/templates/default/images/{$lang_tpl_path_j}/add_to_cart.jpg"/>
						</a>
                    </div>
					
                </div>
            </div>
<style>
.reason ul li{float:left;width:300px;height:23px;}

.jj {
background: url(/images/num.png) no-repeat;
width: 81px;
float:left;
height: 31px;position: relative;
}
.jj input {
width: 38px;
height: 24px;
margin-top: 3px;
line-height: 24px;
padding: 0 10px;
float: left;
border: 0;
background: none;
}
 .jj a {
width: 18px;
height: 14px;
position: absolute;
right: 0;
display: block;
text-indent: -9999px;
}
.jj .jia {
top: 0;
}
.jj .jian {
bottom: 0;
}
</style>

					<div style="clear:both"></div>		
{if $value['detail']!=":"}	
            <div class="reason">
                <h2><b>商品详情</b></h2>
				
               
				<ul>
				{$value['detail']}
				</ul>
				
				<div class="clear"></div>
            </div>
{/if}			
            <div class="lm">
                <h3>
                    {lang Description}</h3>
            </div>
            <div class="miaoshu" style="margin-top:10px;clear:both;overflow:hidden;">
				{$value['about']}
            </div>
        </div>
    </div>

{template 'footer'}

    </form>

</body>
</html>